package com.study.juc;

public class HookThreadTest {

    public static void main(String[] args) {
        Runtime.getRuntime().addShutdownHook(new Thread(()->{
            
            System.out.println(Thread.currentThread().getName());
        }));
        
        int a = 1/0;
        
        
    }
}
